package com.shadow.study.quartz.service.impl;

import com.shadow.common.entity.ScheduleJobLogEntity;
import com.shadow.mapper.ScheduleJobLogMapper;
import com.shadow.service.ScheduleJobLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 定时任务执行日志服务实现类.
 * @author pbody
 * @since 2021-03-25
 */
@Service
public class ScheduleJobLogServiceImpl implements ScheduleJobLogService{

    @Resource
    private ScheduleJobLogMapper scheduleJobLogMapper;

    @Override
    public void save(ScheduleJobLogEntity scheduleJobLogEntity) {
        scheduleJobLogMapper.insert(scheduleJobLogEntity);
    }
}
